package com.ruoyi.project.system.threadpoolAndAsync.controller;


import com.ruoyi.project.system.threadpoolAndAsync.service.MyAsyncService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: test_demo
 * @description: 测试类
 * @author: yanghua
 * @create: 2021-10-09 10:18
 **/
@RestController
@Slf4j
public class TestPoolAsyncController {
    @Autowired
    private MyAsyncService myAsync;

    @RequestMapping("/d1xiancheng")
    public String d1xiancheng() {
        // 发送短信
        for (int i=0;i<110;i++){
            myAsync.sms();
        }

        return "我是返回结果";
    }
}
